<?php
namespace App\H5\Controllers\Taoke;

use App\Http\Controllers\Api\BaseController;
use App\Wen\Utils\Settings;

class TaokeCommonController{
    public function realhot(){
        global $__MINI_GLOBAL_PAYCODE_13__;
        if(!$__MINI_GLOBAL_PAYCODE_13__){
            return '该功能未解锁';
        }
        $dataoke_page_appkey = Settings::get('app_dataoke_realhot_page_appkey');
        $home_url = env('APP_URL');
        $h5_home = Settings::get('app_h5_home');
        return view('taoke/realhot', ['dataoke_appkey' => $dataoke_page_appkey, 'home_url'=>$home_url, 'h5_home'=>$h5_home]);
    }

    public function flashsale(){
        global $__MINI_GLOBAL_PAYCODE_13__;
        if(!$__MINI_GLOBAL_PAYCODE_13__){
            return '该功能未解锁';
        }
        $dataoke_page_appkey = Settings::get('app_dataoke_flashsale_page_appkey');
        $home_url = env('APP_URL');
        $h5_home = Settings::get('app_h5_home');
        return view('taoke/flashsale', ['dataoke_appkey' => $dataoke_page_appkey, 'home_url'=>$home_url, 'h5_home'=>$h5_home]);
    }

    public function billionsubsidy(){
        global $__MINI_GLOBAL_PAYCODE_13__;
        if(!$__MINI_GLOBAL_PAYCODE_13__){
            return '该功能未解锁';
        }
        $dataoke_page_appkey = Settings::get('app_dataoke_billionsubsidy_page_appkey');
        $home_url = env('APP_URL');
        $h5_home = Settings::get('app_h5_home');
        return view('taoke/billionsubsidy', ['dataoke_appkey' => $dataoke_page_appkey, 'home_url'=>$home_url, 'h5_home'=>$h5_home]);
    }

    public function packaging9_9(){
        global $__MINI_GLOBAL_PAYCODE_13__;
        if(!$__MINI_GLOBAL_PAYCODE_13__){
            return '该功能未解锁';
        }
        $dataoke_page_appkey = Settings::get('app_dataoke_packaging9_9_page_appkey');
        $home_url = env('APP_URL');
        $h5_home = Settings::get('app_h5_home');
        return view('taoke/packaging9_9', ['dataoke_appkey' => $dataoke_page_appkey, 'home_url'=>$home_url, 'h5_home'=>$h5_home]);
    }

    public function threadreport(){
        global $__MINI_GLOBAL_PAYCODE_13__;
        if(!$__MINI_GLOBAL_PAYCODE_13__){
            return '该功能未解锁';
        }
        $dataoke_page_appkey = Settings::get('app_dataoke_threadreport_page_appkey');
        $home_url = env('APP_URL');
        $h5_home = Settings::get('app_h5_home');
        return view('taoke/threadreport', ['dataoke_appkey' => $dataoke_page_appkey, 'home_url'=>$home_url, 'h5_home'=>$h5_home]);
    }

}
